// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DisplayScope.cs" company="Collaboris Ltd.">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Represents a scope contained in a display group
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.SharePoint.Moss.Search
{
    using System;
    using System.Collections.Generic;
    using System.Xml.Serialization;

    /// <summary>
    /// Represents a scope contained in a display group
    /// </summary>
    [Serializable]
    public class DisplayScope
    {
        /// <summary>
        /// Name of the display scope. Has to match the name of an already existent search scope.
        /// </summary>
        [XmlAttribute]
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// Determines 2if this is the default scope for this display. 
        /// </summary>
        [XmlAttribute]
        public bool Default
        {
            get;
            set;
        }

        /// <summary>
        /// The type of scope (site or shared)
        /// </summary>
        [XmlAttribute]
        public ScopeType Type
        {
            get;
            set;
        }
    }

    /// <summary>
    /// Represents a collection of display scopes
    /// </summary>
    [Serializable]
    public class DisplayScopesCollection : List<DisplayScope>
    {
        
    }
}